<?xml version="1.0" encoding="ISO-8859-1" ?>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib uri="c.tld" prefix="c" %>
<%@ taglib uri="sql.tld" prefix="sql" %>
<jsp:useBean id="beanFaleConoscoResposta" class="classes.BeanFaleConoscoResposta" scope="session"/>
<jsp:useBean id="beanFaleConoscoStatus" class="classes.BeanFaleConoscoStatus" scope="session"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>

	<!-- data source -->
	
	<c:import url="/WEB-INF/Database/dataSourceMysql.jsp"/>
	
	<!-- data e hora resposta  -->
	
	<sql:query var="queryConsultaDataHoraResposta" scope="page">
		select DATE_FORMAT(SYSDATE(),'%d%m%Y') as dataResposta,DATE_FORMAT(SYSDATE(),'%H%i%s') as horaResposta
		from assuntofaleconosco
		LIMIT 1		
	</sql:query>
	
	<!-- set beanFaleConoscoResposta -->
	
	<c:forEach var="listaQueryConsultaDataHoraResposta" items="${queryConsultaDataHoraResposta.rows}">
		<jsp:setProperty property="dataResposta" name="beanFaleConoscoResposta" value="${listaQueryConsultaDataHoraResposta.dataresposta}"/>
		<jsp:setProperty property="horaResposta" name="beanFaleConoscoResposta" value="${listaQueryConsultaDataHoraResposta.horaresposta}"/>
	</c:forEach>
	
	<jsp:setProperty property="idFaleConoscoPergunta" name="beanFaleConoscoResposta" param="textFieldProtocolo"/>
	<jsp:setProperty property="idLogin" name="beanFaleConoscoResposta" value="${sessionScope.idLogin}"/>
	<jsp:setProperty property="resposta" name="beanFaleConoscoResposta" param="textAreaResposta"/>
	
	<!-- set beanFaleConoscoStatus -->
	
	<jsp:setProperty property="statusPergunta" name="beanFaleConoscoStatus" value="2"/>
	
	<!-- redirect -->
	
	<c:redirect url="Controller.jsp">
		<c:param name="redirectECadastraFaleConoscoResposta"><c:out value="redirect"/></c:param>
	</c:redirect>

</body>
</html>